package com.ruoyi.center.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 通知中心对象 mg_notice_center
 * 
 * @author 王强
 * @date 2024-01-23
 */
public class NoticeCenter extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;
    

    /** 编辑id */
    @Excel(name = "编辑id")
    private Integer adminId;

    /** 通知类型(0=订单通知,1=二次服务通知,2=开票通知,3=团队通知,4=预存通知,5=提现通知) */
    @Excel(name = "通知类型(0=订单通知,1=二次服务通知,2=开票通知,3=团队通知,4=预存通知,5=提现通知)")
    private Integer noticeType;

    /** 通知类型对应的表id */
    @Excel(name = "通知类型对应的表id")
    private Integer typeId;

    /** 消息状态(0=未读,1=已读) */
    @Excel(name = "消息状态(0=未读,1=已读)")
    private Integer readStatus;

    /** 通知标题 */
    @Excel(name = "通知标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String noticeContent;
    
    /**
     * 是否跳转
     */
    private Byte jump = 0;
    
    private Integer platform;
    
    private String typeName;
    
    // 1 平台管理员 2   编辑者 3 两者都是
    private Integer authority;
    
    
    /**
     * 发票类型 0 未知 1 预存发票 2 订单发票
     */
    private Byte translateType = 0;
    

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setAdminId(Integer adminId) 
    {
        this.adminId = adminId;
    }

    public Integer getAdminId() 
    {
        return adminId;
    }
    public void setNoticeType(Integer noticeType) 
    {
        this.noticeType = noticeType;
    }

    public Integer getNoticeType() 
    {
        return noticeType;
    }
    public void setTypeId(Integer typeId) 
    {
        this.typeId = typeId;
    }

    public Integer getTypeId() 
    {
        return typeId;
    }
    public void setReadStatus(Integer readStatus) 
    {
        this.readStatus = readStatus;
    }

    public Integer getReadStatus() 
    {
        return readStatus;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setNoticeContent(String noticeContent) 
    {
        this.noticeContent = noticeContent;
    }

    public String getNoticeContent() 
    {
        return noticeContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("adminId", getAdminId())
            .append("noticeType", getNoticeType())
            .append("typeId", getTypeId())
            .append("readStatus", getReadStatus())
            .append("title", getTitle())
            .append("noticeContent", getNoticeContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public Byte getJump() {
		return jump;
	}

	public void setJump(Byte jump) {
		this.jump = jump;
	}

	public Byte getTranslateType() {
		return translateType;
	}

	public void setTranslateType(Byte translateType) {
		this.translateType = translateType;
	}

	public Integer getPlatform() {
		return platform;
	}

	public void setPlatform(Integer platform) {
		this.platform = platform;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Integer getAuthority() {
		return authority;
	}

	/**
	 * 1 平台管理员
	 * 2   编辑者 
	 * 3 两者都是
	 * @param authority
	 */
	public void setAuthority(Integer authority) {
		this.authority = authority;
	}
}
